home *** CD-ROM | disk | FTP | other *** search
/ MacWorld 2005 March / Macworld CD March 2005 - Marathon Trilogy.iso / Shareware World / Text Processing / HexEdit Release.sit / HexEdit Release / Project / Source / ObjectWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-10-30  |  2.0 KB  |  63 lines  |  [TEXT/CWIE]

  1. /*
  2.  * The contents of this file are subject to the Mozilla Public
  3.  * License Version 1.1 (the "License"); you may not use this file
  4.  * except in compliance with the License. You may obtain a copy of
  5.  * the License at http://www.mozilla.org/MPL/
  6.  * 
  7.  * Software distributed under the License is distributed on an "AS
  8.  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  9.  * implied. See the License for the specific language governing
  10.  * rights and limitations under the License.
  11.  * 
  12.  * The Original Code is Copyright 1993 Jim Bumgardner.
  13.  * 
  14.  * The Initial Developer of the Original Code is Jim Bumgardner
  15.  * Portions created by Lane Roathe are
  16.  * Copyright (C) Copyright © 1996-2002.
  17.  * All Rights Reserved.
  18.  *
  19.  * Modified: $Date: 2002/03/20 06:38:24 $
  20.  * Revision: $Id: ObjectWindow.h,v 1.3 2002/03/20 06:38:24 raving Exp $
  21.  *
  22.  * Contributor(s):
  23.  *        Lane Roathe
  24.  *        Nick Shanks
  25.  */
  26.  
  27. #include "HexEdit.h"
  28.  
  29. #ifndef _HexEdit_ObjectWindow_
  30. #define _HexEdit_ObjectWindow_
  31.  
  32. /*** OBJECT WINDOW RECORD ***/
  33. typedef struct
  34. {
  35.     WindowRef        theWin;
  36.  
  37.     Boolean            ownStorage;
  38.     Boolean            active;
  39.     Boolean            floating;
  40.     Boolean            themeSavvy;        // NS 1.7.1
  41.  
  42.     void    (*Dispose)        (WindowRef theWin);
  43.     void    (*Update)        (WindowRef theWin);
  44.     void    (*Activate)        (WindowRef theWin, Boolean active);
  45.     void    (*HandleClick)    (WindowRef theWin, Point where, EventRecord *er);
  46.     void    (*Draw)            (WindowRef theWin);
  47.     void    (*Idle)            (WindowRef theWin, EventRecord *er);
  48.     void    (*Save)            (WindowRef theWin);
  49.     void    (*SaveAs)        (WindowRef theWin);
  50.     void    (*Revert)        (WindowRef theWin);
  51.     void    (*ProcessKey)    (WindowRef theWin, EventRecord *theEvent);
  52.  
  53. }    ObjectWindowRecord, *ObjectWindowPtr;
  54.  
  55. WindowRef InitObjectWindow( short resID, ObjectWindowPtr theStorage, Boolean isFloating );
  56. void DisposeObjectWindow( WindowRef theWin, Boolean disposeFlag );
  57. void DefaultUpdate( WindowRef theWin );
  58. void DefaultActivate( WindowRef theWin, Boolean active );
  59. void DefaultHandleClick( WindowRef theWin, Point where, EventRecord *er );
  60. void DefaultDispose( WindowRef theWin );
  61. void DefaultDraw( WindowRef theWin );
  62.  
  63. #endif